﻿<%@ Page Title="Add Group" Language="C#" MasterPageFile="~/ASP/MasterPages/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="AddGroup.aspx.cs" Inherits="BulkSMSapplication.ASP.MenuItems.AddGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MasterContentPlaceHolder" runat="server">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
    <div style="height: 449px">

        <asp:Button ID="btnAdd" runat="server" Text=">" OnClick="btnAdd_Click" />
        <asp:Button ID="btnAddAll" runat="server" Text=">>" />
        <asp:Button ID="btnRemove" runat="server" Text="<" />
        <asp:Button ID="btnRemoveAll" runat="server" Text="<<" />
        <asp:ListBox ID="ListBoxPersons" runat="server" DataSourceID="SqlDataSource" DataTextField="First_name" DataValueField="First_name" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged" Height="189px" SelectionMode="Multiple" Width="151px">
            <asp:ListItem>Test</asp:ListItem>
        </asp:ListBox>
        <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:BulkSMSdatabaseConnectionString %>" SelectCommand="SELECT * FROM [Person]"></asp:SqlDataSource>
        <asp:ListBox ID="ListBoxGroup" runat="server" Height="205px" SelectionMode="Multiple" Width="123px"></asp:ListBox>
        
    </div>
    <%--<script type="text/javascript">
        $(document).ready(
        function () {
            $('#btnAdd').click(
                function (e) {
                    $('#ListBoxPersons > option:selected').appendTo('#ListBox2');
                    e.preventDefault();
                });

            $('#btnAddAll').click(
            function (e) {
                $('#ListBoxPersons > option').appendTo('#ListBox2');
                e.preventDefault();
            });

            $('#btnRemove').click(
            function (e) {
                $('#ListBox2 > option:selected').appendTo('#ListBoxPersons');
                e.preventDefault();
            });

            $('#btnRemoveAll').click(
            function (e) {
                $('#ListBox2 > option').appendTo('#ListBoxPersons');
                e.preventDefault();
            });

        });
    </script>--%>
</asp:Content>


